import request from '@/utils/request'

export function companyDepartment() {
  return request({
    url: '/company/department'
  })
}

// 部门新增
export function companyDepartmentPost(data) {
  return request({
    url: '/company/department',
    method: 'POST',
    data
  })
}

// 删除部门
export function companyDepartmentDel(id) {
  return request({
    url: '/company/department/' + id,
    method: 'DELETE'
  })
}

// 修改部门
export function companyDepartmentPut(data) {
  return request({
    url: '/company/department/' + data.id,
    method: 'PUT',
    data
  })
}
